home *** CD-ROM | disk | FTP | other *** search
/ Publisher Platinum / Publisher Platinum.iso / clipart / utils / chrom2 / install.bat < prev   
Encoding:
DOS Batch File  |  1993-04-30  |  3.9 KB  |  176 lines

  1. ECHO OFF
  2. cls
  3. echo            ChromaTools Installation Batch
  4. echo            -----------------------------------
  5. if %4it==zztopit goto COP2
  6. if %3it==zztopit goto COP2
  7. set todir=CHROMA
  8. if %1x==x goto badargs
  9. if %2x==x goto badargs
  10. if %3x==x goto default
  11. set todir=%3
  12. :default
  13. echo                                  °
  14. echo    This batch will install the ChromaTools software onto your disk.
  15. echo                                  °
  16. echo    ChromaTools requires 1.5 MB of disk space for installation.
  17. echo                                  °
  18. echo    The ChromaTools disk #1 should now be in drive %1 
  19. echo                                  °
  20. echo    The ChromaTools software will be copied to drive %2
  21. echo                                  °
  22. echo    ChromaTools will be installed on drive %2 in the directory %todir%
  23. echo                                  °
  24. echo    If this is not correct, then type the CTRL and BREAK keys together
  25. echo    to end this process now, and then restart providing the proper drives.
  26. echo     
  27. echo    If everything is OK, then this process will continue after you type a key.
  28. echo     
  29. pause
  30. if NOT exist %1:INSTALL.BAT goto badfiles
  31. MD %2:\%todir%
  32. CD %2:\%todir%
  33. COPY %1:INSTALL.BAT %2:*.*
  34. GOTO INSTAL2
  35. :COP2
  36. CLS
  37. echo            ChromaTools Installation Batch
  38. echo            ----------------------------
  39. echo     
  40. echo     
  41. echo    Now the ChromaTools program and files will be copied from %1 to %2.
  42. echo     
  43. echo     
  44. if not exist %1:CHROMA1.EXE goto badfiles
  45. ECHO ON
  46. COPY %1:CHROMA1.EXE %2:*.*
  47. ECHO OFF
  48. if NOT exist %2:CHROMA1.EXE goto nogood
  49.  
  50. :disk2
  51. CLS
  52. ECHO OFF
  53. echo  
  54. echo  
  55. echo  
  56. echo  
  57. ECHO            INSERT ChromaTools DISK #2
  58. echo  
  59. echo  
  60. echo  
  61. echo  
  62. PAUSE
  63. ECHO OFF
  64. if not exist %1:CHROMA2.EXE goto badfile2
  65. ECHO ON
  66. COPY %1:CHROMA2.EXE %2:*.*
  67. ECHO OFF
  68. if NOT exist %2:CHROMA2.EXE goto nogood
  69.  
  70. :disk3
  71. CLS
  72. ECHO OFF
  73. echo  
  74. echo  
  75. echo  
  76. echo  
  77. ECHO            INSERT ChromaTools DISK #3
  78. echo  
  79. echo  
  80. echo  
  81. echo  
  82. PAUSE
  83. ECHO OFF
  84. if not exist %1:CHROMA3.EXE goto badfile3
  85. ECHO ON
  86. COPY %1:CHROMA3.EXE %2:*.*
  87. ECHO OFF
  88. if NOT exist %2:CHROMA3.EXE goto nogood
  89.  
  90.  
  91. CLS
  92. echo     
  93. echo  THE ChromaTools FILES HAVE BEEN COPIED SUCCESSFULLY!
  94. echo     
  95. echo     
  96. echo  Now ChromaTools will unpack itself.
  97. echo     
  98. %2:
  99. CHROMA1
  100. CHROMA2
  101. CHROMA3
  102. if NOT exist %2:CHROMA.EXE goto nogood
  103. DEL CHROMA1.EXE
  104. DEL CHROMA2.EXE
  105. DEL CHROMA3.EXE
  106. cls
  107. echo     
  108. echo   THE ChromaTools FILES HAVE BEEN SUCCESSFULLY INSTALLED!
  109. echo     
  110. echo   ChromaTools defaults to the standard Targa driver (not required).     
  111. echo     
  112. echo   Type PLUS to install the Targa+ video drivers.     
  113. echo     
  114. echo   Type VISTA to install the ATVista video drivers.     
  115. echo     
  116. echo     
  117. echo     
  118. echo   Type CHROMA to start ChromaTools.
  119. echo     
  120. goto ender
  121. :badfiles
  122. echo The ChromaTools disk #1 must be in drive %1!
  123. goto badargs
  124. :badfile2
  125. CLS
  126. echo The ChromaTools disk #2 must be in drive %1!
  127. pause
  128. goto disk2
  129.  
  130. :badfile3
  131. CLS
  132. echo The ChromaTools disk #3 must be in drive %1!
  133. pause
  134. goto disk3
  135.  
  136. :nogood
  137. echo        The installation process has terminated unsuccessfully.
  138. echo     
  139. echo     
  140. echo    Please check to make sure that you typed the correct drive letters ,
  141. echo    and that you have enough free disk space on the target drive.
  142. echo    Refer to the ChromaTools manual for additional information
  143. echo    and restart this batch to try again.
  144. echo     
  145. echo     
  146. goto ender
  147. :badargs
  148. echo     
  149. echo    Please type the following:
  150. echo     
  151. echo    INSTALL x y sub
  152. echo     
  153. echo    where    x is the source floppy drive
  154. echo        y is the destination disk drive
  155. echo        sub is the optional sub-directory to install in.
  156. echo     
  157. echo    If you do not specify a sub-directory, CHROMA is the default.
  158. echo     
  159. echo    For example, you might type:
  160. echo     
  161. echo    INSTALL A C    
  162. echo     
  163. echo    to install from floppy drive A to your hard disk C
  164. echo     
  165. echo    You can also specify the subdirectory, for example CHRMTOOL
  166. echo     
  167. echo    INSTALL A C CHRMTOOL 
  168. echo     
  169. echo    to install the ChromaTools in the CHRMTOOL subdirectory.
  170. echo     
  171. GOTO ENDER
  172. :INSTAL2
  173. %2:INSTALL %1 %2 %3 zztop
  174. :ender
  175.  
  176.